package com.neutech.entity;

import com.mybatisflex.annotation.Table;
import com.neutech.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 * 员工表 实体类。
 *
 * @author Administrator
 * @since 2025-02-08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工表")
@Table("emp")
public class Emp extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 员工号
     */
    @Schema(description = "员工号", type = "String")
    private String empNo;

    /**
     * 员工名
     */
    @Schema(description = "员工名", type = "String")
    private String name;

    /**
     * 登录密码
     */
    @Schema(description = "登录密码", type = "String")
    private String password;

    /**
     * 手机号
     */
    @Schema(description = "手机号", type = "String")
    private String phone;

    /**
     * 电子信箱
     */
    @Schema(description = "电子信箱", type = "String")
    private String email;

    /**
     * 最后一次登录时间
     */
    @Schema(description = "最后一次登录时间", type = "LocalDateTime")
    private LocalDateTime lastLogin;

    /**
     * 状态
     */
    @Schema(description = "状态", type = "Integer")
    private Integer active;

}
